﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;

namespace WpfHero
{
    /// <summary>
    /// Represents the displayed (visualized) gem.
    /// </summary>
    public class GemControl : Control
    {

        /// <summary>
        /// This is the static constructor of <see cref="GemControl"/> class.
        /// </summary>
        static GemControl()
        {
            //DefaultStyleKeyProperty.OverrideMetadata(typeof(GemControl),
            //    new FrameworkPropertyMetadata(typeof(GemControl)));
        }

        public GemStatus Status
        {
            get { return (GemStatus)GetValue(StatusProperty); }
            set { SetValue(StatusProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Status.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty StatusProperty =
            DependencyProperty.Register("Status", typeof(GemStatus), typeof(GemControl));


    }
}
